form method = 'get'
  .panel.panel-default
    .panel-heading
      = link_to "新增" , '/users/new', class: "btn btn-primary btn-xs"

    .panel-body
      .table-responsive
        table.table.table-bordered.table-hover
          tr
            th 编号
            th 姓名
            th 账号
            th 角色
            th 操作
            
          -@users.each do |u|
            tr
              td = u.id
              td = u.name
              td = u.email
              td 
                - u.roles.each do |r|
                  span class="label label-success" #{r.name}
              td 
                = link_to "修改", '/users/edit/'+u.id.to_s, class: "btn btn-success btn-xs", style: "margin-right:10px;"
                button type='submit' name='delete' value='#{u.id}' data={confirm: '一旦删除,将无法恢复,是否删除?'} class="btn btn-danger btn-xs" 删除


          